package cn.iocoder.yudao.module.infra.controller.admin.weather.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Schema(description = "管理后台 - 天气信息 Response VO")
@Data
public class WeatherRespVO {

    @Schema(description = "天气数据列表", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<WeatherDayInfo> data;

    @Schema(description = "状态码", requiredMode = Schema.RequiredMode.REQUIRED, example = "200")
    private Integer code;

    @Schema(description = "地点信息", requiredMode = Schema.RequiredMode.REQUIRED, example = "上海市， 上海市， 中国")
    private String place;

    @Schema(description = "天气日信息")
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class WeatherDayInfo {

        @Schema(description = "星期", example = "周一")
        private String week1;

        @Schema(description = "日期", example = "09/15")
        private String week2;

        @Schema(description = "白天天气", example = "多云")
        private String wea1;

        @Schema(description = "夜间天气", example = "多云")
        private String wea2;

        @Schema(description = "白天温度", example = "34°")
        private String wendu1;

        @Schema(description = "夜间温度", example = "27°")
        private String wendu2;

        @Schema(description = "白天天气图标", example = "https://h5tq.moji.com/tianqi/assets/images/weather/w1.png")
        private String img1;

        @Schema(description = "夜间天气图标", example = "https://h5tq.moji.com/tianqi/assets/images/weather/w31.png")
        private String img2;
    }
}

